#!/usr/bin/env bash

echo -e "\033[1;33m Activating venv \033[0m"

cd ../venv/bin/
source activate

echo -e "\033[0;34m Activated \033[0m"

cd ../../

echo -e "\033[1;33m Start remove files \033[0m"


rm db.sqlite3
rm -rf apps/sign/migrations
rm -rf apps/user/migrations

echo -e "\033[0;34m Remove finished \033[0m"

echo -e "\033[1;33m Start create migrations \033[0m"

python3 manage.py makemigrations sign user
python3 manage.py migrate

echo -e "\033[0;34m Done \033[0m"
